<?php

class OutputFormatter {
	public static function convert($value, $format = 'json') {
		switch ($format) {
			case 'json':
			default:
				return utf8_encode(json_encode($value));
		}
	}
}

?>